package com.couldsail.takeaway.common.result;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页返回模板")
public class PageResult<T> {
    private List<T> records;
    private long current; // 当前页码
    private long pages; // 总页数
    private long total; // 总记录数
    private long size;// 返回数据条数



}